package com.atguigu.webapp.service.impl;

import com.atguigu.model.pojo.LeaseTerm;
import com.atguigu.webapp.mapper.LeaseTermMapper;
import com.atguigu.webapp.service.LeaseTermService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 梅超凡
 * @Date 2024/11/13~21:17
 * @Description 针对表【lease_term(租期)】的数据库操作Service实现
*/
@Service
@Slf4j
public class LeaseTermServiceImpl extends ServiceImpl<LeaseTermMapper, LeaseTerm>
    implements LeaseTermService{


    @Autowired
    private LeaseTermMapper leaseTermMapper;
    @Override
    public List<LeaseTerm> selectListByRoomId(Long id) {
        List<LeaseTerm> leaseTerms = leaseTermMapper.selectListByRoomId(id);
        log.info("查询结果：{}",leaseTerms);
        return leaseTerms;
    }
}




